//
//  TopicDetaillHeadImageView.m
//  ZITHER
//
//  Created by 吴凡 on 2019/2/15.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "TopicDetaillHeadImageView.h"

@interface TopicDetaillHeadImageView ()

@end

@implementation TopicDetaillHeadImageView

- (instancetype)init {
    if (self = [super init]) {
        [self setUI];
    }
    return self;
}

- (void)setUI {
    _headImageView = [UIImageView new];
    _headImageView.image = [UIImage imageNamed:@"ucg_img_loding"];
    [self addSubview:_headImageView];
    [_headImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self);
    }];
    
    _timeLabel = [UILabel new];
    _timeLabel.text = @"截止 2000-01-01";
    _timeLabel.font = [UIFont systemFontOfSize:12];
    _timeLabel.textColor = [UIColor colorWithHex:@"#FFFFFF"];
    _timeLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_timeLabel];
    [_timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(120, 24));
        make.left.equalTo(self.mas_left).offset(15);
        make.bottom.equalTo(self.mas_bottom).offset(-9);
    }];
}
@end
